import Vue from 'vue'
import Vuex from 'vuex'
import user from './modules/user'
import ctrl from './modules/ctrl'
import search from './modules/search'
import routes from './modules/routes'
import tagsView from './modules/tagsView'
import getters from './getters'

Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    search,
    routes,
    user,
    ctrl,
    tagsView,
  },
  getters
})

export default store